package com.example.sneakerappserver.service;

import com.example.sneakerappserver.pojo.Goods;

import java.io.IOException;
import java.util.List;

public interface IGoodsService {

    public Goods createGoods(String name, String desc, double price, long categoryId, byte[] imageData);

    public List<Goods> queryAllGoods() throws IOException;

    public Goods queryByGoodsId(Long goodsId);  //根据id 查询商品

    public Goods update(Goods goods);
}
